import React, { Component } from 'react'
import B from '../B'
import { Context } from '../../Context'
export default class A extends Component {
  render() {
    return (
      <Context.Consumer>
        {(value) =>
        <div>
        A:{value.age}
        <hr/>
        <B/>
      </div>}
      
      </Context.Consumer>
    )
  }
}
